﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="WFExtended.Samples.Activities.TwitterHelpSample"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:wfs="clr-namespace:WFExtended.Framework.ServiceModel;assembly=WFExtended"
 xmlns:wt="clr-namespace:WFExtended.Twitter;assembly=WFExtended.Twitter"
 xmlns:wta="clr-namespace:WFExtended.Twitter.Activities;assembly=WFExtended.Twitter"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="Tokens" Type="InArgument(wt:OAuthTokens)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>WFExtended.Samples.Activities.TwitterSample_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>WFExtended.Twitter</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.DurableInstancing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Discovery</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>WFExtended.Twitter</AssemblyReference>
      <AssemblyReference>WFExtended</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>WFExtended.Samples</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_2">
    <Sequence.Variables>
      <Variable x:TypeArguments="wt:Privacy" Name="privacy" />
      <Variable x:TypeArguments="wt:TermsOfService" Name="tos" />
      <Variable x:TypeArguments="scg:List(wt:Language)" Name="languages" />
      <Variable x:TypeArguments="wt:Configuration" Name="configuration" />
    </Sequence.Variables>
    <wta:TwitterProxy RetryCount="{x:Null}" RetryDelay="{x:Null}" EnablePersistence="True" EnableRateLimitAutoRetry="True" sap2010:WorkflowViewState.IdRef="TwitterProxy_1" UseSsl="True">
      <wta:TwitterProxy.ApplicationAccessToken>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">Tokens.ApplicationAccessToken</mca:CSharpValue>
        </InArgument>
      </wta:TwitterProxy.ApplicationAccessToken>
      <wta:TwitterProxy.ApplicationAccessTokenSecret>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">Tokens.ApplicationAccessTokenSecret</mca:CSharpValue>
        </InArgument>
      </wta:TwitterProxy.ApplicationAccessTokenSecret>
      <wta:TwitterProxy.ConsumerKey>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">Tokens.ConsumerKey</mca:CSharpValue>
        </InArgument>
      </wta:TwitterProxy.ConsumerKey>
      <wta:TwitterProxy.ConsumerSecret>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">Tokens.ConsumerSecret</mca:CSharpValue>
        </InArgument>
      </wta:TwitterProxy.ConsumerSecret>
      <wta:TwitterProxy.EndPointBehaviors>
        <InArgument x:TypeArguments="scg:List(p:IEndpointBehavior)" />
      </wta:TwitterProxy.EndPointBehaviors>
      <wta:TwitterProxy.Headers>
        <InArgument x:TypeArguments="scg:List(p:AddressHeader)" />
      </wta:TwitterProxy.Headers>
      <wta:TwitterProxy.Proxy>
        <InArgument x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)" />
      </wta:TwitterProxy.Proxy>
      <wta:TwitterProxy.RateLimitAutoRetryDelay>
        <InArgument x:TypeArguments="x:TimeSpan">
          <mca:CSharpValue x:TypeArguments="x:TimeSpan">new TimeSpan(0,2,0)</mca:CSharpValue>
        </InArgument>
      </wta:TwitterProxy.RateLimitAutoRetryDelay>
      <ActivityAction x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="wfs:WcfProxy(wt:ITwitterApi)" Name="twitterProxy" />
        </ActivityAction.Argument>
        <Sequence sap2010:WorkflowViewState.IdRef="Sequence_4">
          <Sequence.Variables>
            <Variable x:TypeArguments="wt:RateLimitStatus" Name="rateLimit" />
          </Sequence.Variables>
          <Sequence sap2010:WorkflowViewState.IdRef="Sequence_3">
            <wta:GetPrivacy sap2010:WorkflowViewState.IdRef="GetPrivacy_2" OperationName="GetPrivacy">
              <wta:GetPrivacy.Parameters>
                <scg:Dictionary x:TypeArguments="x:String, InArgument" />
              </wta:GetPrivacy.Parameters>
              <wta:GetPrivacy.Proxy>
                <InArgument x:TypeArguments="wfs:AWcfProxy">
                  <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
                </InArgument>
              </wta:GetPrivacy.Proxy>
              <wta:GetPrivacy.Result>
                <OutArgument x:TypeArguments="wt:Privacy">
                  <mca:CSharpReference x:TypeArguments="wt:Privacy">privacy</mca:CSharpReference>
                </OutArgument>
              </wta:GetPrivacy.Result>
            </wta:GetPrivacy>
            <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_1">
              <InArgument x:TypeArguments="x:String">
                <mca:CSharpValue x:TypeArguments="x:String">privacy.Content</mca:CSharpValue>
              </InArgument>
            </WriteLine>
          </Sequence>
          <wta:GetTermsOfService sap2010:WorkflowViewState.IdRef="GetTermsOfService_1" OperationName="GetTermsOfService">
            <wta:GetTermsOfService.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument" />
            </wta:GetTermsOfService.Parameters>
            <wta:GetTermsOfService.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
              </InArgument>
            </wta:GetTermsOfService.Proxy>
            <wta:GetTermsOfService.Result>
              <OutArgument x:TypeArguments="wt:TermsOfService">
                <mca:CSharpReference x:TypeArguments="wt:TermsOfService">tos</mca:CSharpReference>
              </OutArgument>
            </wta:GetTermsOfService.Result>
          </wta:GetTermsOfService>
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_2">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">tos.Content</mca:CSharpValue>
            </InArgument>
          </WriteLine>
          <wta:GetLanguages sap2010:WorkflowViewState.IdRef="GetLanguages_1" OperationName="GetLanguages">
            <wta:GetLanguages.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument" />
            </wta:GetLanguages.Parameters>
            <wta:GetLanguages.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
              </InArgument>
            </wta:GetLanguages.Proxy>
            <wta:GetLanguages.Result>
              <OutArgument x:TypeArguments="scg:List(wt:Language)">
                <mca:CSharpReference x:TypeArguments="scg:List(wt:Language)">languages</mca:CSharpReference>
              </OutArgument>
            </wta:GetLanguages.Result>
          </wta:GetLanguages>
          <ForEach x:TypeArguments="wt:Language" DisplayName="ForEach&lt;Language&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_1">
            <ForEach.Values>
              <InArgument x:TypeArguments="scg:IEnumerable(wt:Language)">
                <mca:CSharpValue x:TypeArguments="scg:IEnumerable(wt:Language)">languages</mca:CSharpValue>
              </InArgument>
            </ForEach.Values>
            <ActivityAction x:TypeArguments="wt:Language">
              <ActivityAction.Argument>
                <DelegateInArgument x:TypeArguments="wt:Language" Name="language" />
              </ActivityAction.Argument>
              <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_3">
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">language.Name + " - " + language.Code + " - " + language.Status</mca:CSharpValue>
                </InArgument>
              </WriteLine>
            </ActivityAction>
          </ForEach>
          <wta:GetRateLimit sap2010:WorkflowViewState.IdRef="GetRateLimit_1" OperationName="GetRateLimitStatus">
            <wta:GetRateLimit.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument" />
            </wta:GetRateLimit.Parameters>
            <wta:GetRateLimit.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
              </InArgument>
            </wta:GetRateLimit.Proxy>
            <wta:GetRateLimit.Result>
              <OutArgument x:TypeArguments="wt:RateLimitStatus">
                <mca:CSharpReference x:TypeArguments="wt:RateLimitStatus">rateLimit</mca:CSharpReference>
              </OutArgument>
            </wta:GetRateLimit.Result>
          </wta:GetRateLimit>
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_4">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">rateLimit.Resources.StatusesResources.Oembed.Limit.ToString()</mca:CSharpValue>
            </InArgument>
          </WriteLine>
          <wta:GetConfiguration sap2010:WorkflowViewState.IdRef="GetConfiguration_1" OperationName="GetConfiguration">
            <wta:GetConfiguration.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument" />
            </wta:GetConfiguration.Parameters>
            <wta:GetConfiguration.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">twitterProxy</mca:CSharpValue>
              </InArgument>
            </wta:GetConfiguration.Proxy>
            <wta:GetConfiguration.Result>
              <OutArgument x:TypeArguments="wt:Configuration">
                <mca:CSharpReference x:TypeArguments="wt:Configuration">configuration</mca:CSharpReference>
              </OutArgument>
            </wta:GetConfiguration.Result>
          </wta:GetConfiguration>
          <ForEach x:TypeArguments="x:String" DisplayName="ForEach&lt;String&gt;" sap2010:WorkflowViewState.IdRef="ForEach`1_2">
            <ForEach.Values>
              <InArgument x:TypeArguments="scg:IEnumerable(x:String)">
                <mca:CSharpValue x:TypeArguments="scg:IEnumerable(x:String)">configuration.NonUsernamePaths</mca:CSharpValue>
              </InArgument>
            </ForEach.Values>
            <ActivityAction x:TypeArguments="x:String">
              <ActivityAction.Argument>
                <DelegateInArgument x:TypeArguments="x:String" Name="username" />
              </ActivityAction.Argument>
              <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_5">
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">username</mca:CSharpValue>
                </InArgument>
              </WriteLine>
            </ActivityAction>
          </ForEach>
        </Sequence>
      </ActivityAction>
    </wta:TwitterProxy>
    <sads:DebugSymbol.Symbol>d1FFOlxQcm9qZWN0c1xXRkVcTWFpblxTb3VyY2VzXFdGRXh0ZW5kZWQuU2FtcGxlc1xBY3Rpdml0aWVzXFR3aXR0ZXJIZWxwU2FtcGxlLnhhbWwmNQPpAQ4CAQE8BecBGAIBAj8LP2YDAbMBRAtEbAMBrQFJC0lbAwGnAVwLXF4DAaEBTgtOXgMBmwFjCeUBFAIBA2cLfBYDAYABfQuLASMCAW+MAQuQARcCAWaRAQufAR4CAVWgAQuwARUCAUKxAQu/AR4CATHAAQvEARcCASjFAQvTASICARfUAQvkARUCAQRoDXYeAwGKAXcNexkDAYEBgwERgwFgAgF4iAERiAFjAgFwjgEPjgFYAgFnlwERlwFgAgFenAERnAFtAgFWowERowFsAgFNqgEPrgEbAgFDtwERtwFgAgE6vAERvAFqAgEywgEPwgGKAQIBKcsBEcsBYAIBINABEdABbAIBGNcBEdcBfgIBD94BD+IBGwIBBW4TbmIDAZMBcxNzYgMBiwF5EXleAwGCAawBE6wBkAECAUTgARPgAVkCAQY=</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="GetPrivacy_2" sap:VirtualizedContainerService.HintSize="211,72" />
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_3" sap:VirtualizedContainerService.HintSize="287,298">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="GetTermsOfService_1" sap:VirtualizedContainerService.HintSize="287,72" />
      <sap2010:ViewStateData Id="WriteLine_2" sap:VirtualizedContainerService.HintSize="287,62" />
      <sap2010:ViewStateData Id="GetLanguages_1" sap:VirtualizedContainerService.HintSize="287,72" />
      <sap2010:ViewStateData Id="WriteLine_3" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="ForEach`1_1" sap:VirtualizedContainerService.HintSize="287,212" />
      <sap2010:ViewStateData Id="GetRateLimit_1" sap:VirtualizedContainerService.HintSize="287,72" />
      <sap2010:ViewStateData Id="WriteLine_4" sap:VirtualizedContainerService.HintSize="287,62" />
      <sap2010:ViewStateData Id="GetConfiguration_1" sap:VirtualizedContainerService.HintSize="287,72" />
      <sap2010:ViewStateData Id="WriteLine_5" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="ForEach`1_2" sap:VirtualizedContainerService.HintSize="287,212" />
      <sap2010:ViewStateData Id="Sequence_4" sap:VirtualizedContainerService.HintSize="309,1578">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TwitterProxy_1" sap:VirtualizedContainerService.HintSize="339,1702" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="361,1826">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WFExtended.Samples.Activities.TwitterSample_1" sap:VirtualizedContainerService.HintSize="401,1906" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>